﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;

namespace WcfService.DTO
{
    [DataContract]
    public class RssDTO
    {
        #region Thuộc tính
        private int maRSS;
        private string nguoiDung;
        private string link;
        private int tinhTrang;
        #endregion Thuộc tính

        #region Hàm Getter/Setter
        [DataMember]
        public int MaRSS
        {
            get { return maRSS; }
            set { maRSS = value; }
        }

        [DataMember]
        public string NguoiDung
        {
            get { return nguoiDung; }
            set { nguoiDung = value; }
        }

        [DataMember]
        public string Link
        {
            get { return link; }
            set { link = value; }
        }

        [DataMember]
        public int TinhTrang
        {
            get { return tinhTrang; }
            set { tinhTrang = value; }
        }
        #endregion Getter/Setter

        #region Các hàm khởi tạo
        public RssDTO()
        {
            this.maRSS = 0;
            this.nguoiDung = "";
            this.link = "";
            this.tinhTrang = 0;
        }
        public RssDTO(RssDTO rss)
        {
            this.maRSS = rss.maRSS;
            this.nguoiDung = rss.nguoiDung;
            this.link = rss.link;
            this.tinhTrang = rss.tinhTrang;
        }

        public RssDTO(int _ma, string _nguoiDung, string _link, int _tinhTrang)
        {
            this.maRSS = _ma;
            this.nguoiDung = _nguoiDung;
            this.link = _link;
            this.tinhTrang = _tinhTrang;
        }
        #endregion Khởi tạo
    }
}